def extract_first_non_zero_digit(n):
    n *= 10
    return int(n) % 10
